<template>
  <button
    class="button field-modify button--link f-15"
    :class="{ 'field-modify-hidden': !alwaysDisplay }"
    @click="$emit('input', true)"
  >
    <svg-icon icon-name="sprite_icons_pencil-square" />
    {{ label }}
  </button>
</template>

<script>
export default {
  name: 'field-modify-button',
  props: {
    alwaysDisplay: Boolean,
    label: {
      type: String,
      default: '修改',
    },
  },
};
</script>

<style></style>
